package com.heima.article.controller.v1;


import com.heima.article.service.ReadCountService;
import com.heima.model.behavior.dtos.ReadCountDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yht
 * @date 2022/1/16 13:28
 */
@RestController
@RequestMapping("/api/v1/")
public class ReadCountController {

    @Autowired
    private ReadCountService readCountService;
    @RequestMapping("/read_behavior")
    public ResponseResult readCount(@RequestBody ReadCountDto dto){
        return readCountService.readCount(dto);
    }
}
